﻿#ifndef DISPATCHVIDEO_H
#define DISPATCHVIDEO_H

#include "videowindow.h"

class DispatchVideo : public VideoWindow
{
    Q_OBJECT
public:
    explicit DispatchVideo(QWidget *parent = nullptr);
    ~DispatchVideo();
protected:
    void paintEvent(QPaintEvent * e);
    void resizeEvent(QResizeEvent *e);
    void setToolBarVisible(bool visible);
private slots:
    void turnLeft();
    void turnRight();
    void switchCamera();
    void toggleSpeak(bool checked);
    void closeVideo();
signals:
    void close_video(qint64 uid);
private:
    void setSpeaking(bool speaking);
    QWidget *bottomBar;
    bool isSpeaking;
};

#endif // DISPATCHVIDEO_H
